package classroom;

public class Employee {
   private   String name;

   private char  sex;

   private  String birth;

    private  double salary;

    public Employee(String name, char sex, String birth, double salary) {
        this.name = name;
        this.sex = sex;
        this.birth = birth;
        this.salary = salary;
    }

    public Employee(String name) {
        this.name = name;
    }

    public Employee(String name, char sex) {
        this.name = name;
        this.sex = sex;
    }

    public Employee(String name, char sex, String birth) {
        this.name = name;
        this.sex = sex;
        this.birth = birth;
    }

    public Employee(char sex, String birth, double salary) {
        this.sex = sex;
        this.birth = birth;
        this.salary = salary;
    }

    public double setSalary() {
        if (salary<5000) {
            return 5000;
        } else  {
            return salary*1.1;
        }
    }

    public void showSalary(double salary) {

            System.out.println(this.name+"的工资是："+salary);
    }


}
